package com.china08.yxyapi.entity.mg.homework;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 作业:知识点:学生 (每一个任务下每一个学生一个知识点 存储一条记录)，当学生点击试题类作业提交时产生。
 * 
 * @author Richard Wang
 *
 */
@Document(collection = "yxy.tea.homework.task.report.know")
public class HomeworkKnowReport extends MongoBaseEntityNoId {

    private static final long serialVersionUID = 114744923319700922L;

    /** 主键 */
    @Id
    private String id;

    /** 学生:ID */
    @Indexed
    @Field(value = "student_id")
    private String studentId;

    /** 任务:ID */
    @Indexed
    @Field(value = "task_id")
    private String taskId;

    /** 知识点:ID */
    @Indexed
    @Field(value = "know_id")
    private Integer knowId;

    /** 知识点:Name */
    @Field(value = "know_name")
    private String knowName;

    /** 学校:ID */
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 掌握比率
     */
    @Field(value = "rate")
    private Double rate;

    /** 班级:ID */
    @Field(value = "class_id")
    private String classId;

    /**
     * 当此数据发生变化时, 将此状态更改为 0, total表进行统计之后, 将此字段更新为1,已经同步 </br>
     * 0:未同步 1:已同步
     */
    @Field(value = "synch")
    private Integer synch;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public Integer getKnowId() {
        return knowId;
    }

    public void setKnowId(Integer knowId) {
        this.knowId = knowId;
    }

    public String getKnowName() {
        return knowName;
    }

    public void setKnowName(String knowName) {
        this.knowName = knowName;
    }

    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getSynch() {
        return synch;
    }

    public void setSynch(Integer synch) {
        this.synch = synch;
    }

}
